package com.container.app.tests.scan;

import com.container.app.MContainer;
import com.container.app.MContainerConfiguration;
import com.container.app.MContainerManager;
import com.container.app.testclasses.movies.ContainsImplementations;
import junit.framework.TestCase;

/**
 * Created with IntelliJ IDEA.
 * User: Georgiana.Scarlat
 * Date: 8/6/12
 * Time: 11:37 AM
 */
public abstract class AbstractTestWithScan extends TestCase {

    MContainer container;
    protected Class<? extends MContainerConfiguration> configuration;


    public AbstractTestWithScan(String name) {
        super(name);

    }


    @Override
    public void setUp() throws Exception {
        super.setUp();
        container = new MContainerManager(configuration);

    }

    @Override
    public void tearDown() throws Exception {
        super.tearDown();
        container.closeContainer();
        ContainsImplementations.setMovieFinder(null);
        ContainsImplementations.setMovieLister(null);
    }


}
